package cn.comtom.ewbs.signature.controller;

import cn.comtom.ewbs.signature.common.enums.SysConstant;
import cn.comtom.ewbs.signature.entity.SysUser;
import cn.dev33.satoken.stp.SaTokenInfo;
import cn.dev33.satoken.stp.StpUtil;

/**     
 * 基础controller
 * @author: liuhy
 * @date:   2021/03/18 
 *   
 */
public class AuthController extends BaseController{ 
	
    protected SaTokenInfo getCurrentTokenInfo() {
    	
    	return StpUtil.getTokenInfo();
    }
    
    protected SysUser getCurrentUserInfo() {
    	
    	return (SysUser)StpUtil.getTokenSession().get(SysConstant.USER_DETAIL_INFO);
    }
}

